.box {
  width: 5rem;
  height: 2.667rem;
  background: skyblue;
  overflow-x: hidden;
}

.classify {
  img {
    width: 0.773rem;
    height: 0.773rem;
  }
}

html {
  background: white;
}

body {
  width: 750px;
  background: #f6f6f6;
  margin: 0 auto;
  overflow-x: hidden;
}

@media screen and (max-width: 749px) {
  body {
    width: 100%;
    //background: gray;
  }
}

@media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
}

ul, ol, li {
  list-style: none;
  padding: 0;
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
}

a {
  display: block;
}

header {
  height: 270px;
  background: url("https://m.360buyimg.com/mobilecms/s1125x939_jfs/t1/180606/33/15301/210416/60f94c98Ef07fb8d8/9f0a30447fe9fa64.jpg!q70.jpg") no-repeat;
  background-size: 100% 100%;

  .search-box {
    height: 45px;
    position: relative;
    display: flex;
    align-items: center;

    .left-button {
      width: 50px;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: 20px;
        height: 18px;
      }
    }

    .login {
      width: 50px;
      height: 100%;
      line-height: 45px;
      text-align: center;
      font-size: 14px;
      color: white;
    }

    .search {
      height: 30px;
      background: white;
      flex: 1;
      display: flex;
      border-radius: 15px;

      #search-input-left-jd {
        display: block;
        width: 20px;
        height: 16px;
        background: url() no-repeat;;
        background-size: 100% 100%;
        margin: 8px 8px 0 15px;
        position: relative;

        &::after {
          content: '';
          display: block;
          border-right: 1px solid #ddd;
          position: absolute;
          left: 28px;
          height: 16px;
        }
      }

      #search-input-left-icon {
        display: block;
        width: 18px;
        height: 15px;
        background: url(https://st.360buyimg.com/so/images/search/jd-sprites.png?__inline=) no-repeat -80px 0;
        background-size: 200px;
        margin: 8px 0 0 5px;
      }

      input {
        flex: 1;
        border: 0;
        font-size: 14px;
        margin-left: 5px;
        padding-left: 5px;
        border-radius: 15px;
      }
    }
  }

  .banner-box {
    width: 9.533rem;
    height: 2.667rem;
    overflow: hidden;
    margin: 0.267rem auto 0;
    border-radius: 0.35rem;
    position: relative;

    .banner {
      width: 47.667rem;
      height: 2.667rem;
      animation: banner 10s ease infinite;

      a {
        float: left;
        width: 9.533rem;
        height: 2.667rem;

        img {
          width: 100%;
          height: 100%;
          border-radius: 0.35rem;
        }
      }
    }

    ol {
      position: absolute;
      bottom: 0.133rem;
      left: 50%;
      transform: translate(-50%);

      li {
        background: hsla(0, 0%, 100%, .6);
        width: 0.107rem;
        height: 0.107rem;
        border-radius: 0.053rem;
        float: left;
        margin: 0 2px;

        &.current {
          background: red;
        }
      }
    }
  }
}

@keyframes banner {
  from {
    transform: translate(0);
  }
  25% {
    transform: translate(-20%);
  }
  50% {
    transform: translate(-40%);
  }
  75% {
    transform: translate(-60%);
  }
  to {
    transform: translate(-80%);
  }
}
